/*
 * @Description: 用户权限 - 知悉范围
 * @Author: Rfan
 * @Date: 2022-04-07 15:49:26
 * @LastEditTime: 2022-04-07 17:21:55
 */

import { Alert } from 'antd';
import classNames from 'classnames/bind';
import NavSidebar from './components/NavSidebar';
import Operate from './components/Operate';
import List from './components/List';
import { ScopeOfKnowledgeContextProvider } from './contexts/ScopeOfKnowledgeContext';

import styles from './styles/scopeOfKnowledge.module.scss';

const cx = classNames.bind(styles);

const UserRightScopeOfKnowledge = () => {
  return (
    <>
      <ScopeOfKnowledgeContextProvider>
        <div className={cx('main-wrap')}>
          <div className={cx('unit-wrap')}>
            <NavSidebar />
          </div>
          <div className={cx('content-wrap')}>
            <Operate />
            <div className={cx('tips')}>
              <Alert
                description="档案的知悉范围：是对每个档案可开放权限的限定,创建知悉范围规则并生效，相关档案档案即可被开放（此设定是对档案本身上的限定，属于基本的档案权限，面向于所有普通用户）"
                type="info"
                showIcon
                closable
              />
            </div>
            <List />
          </div>
        </div>
      </ScopeOfKnowledgeContextProvider>
    </>
  );
};

export default UserRightScopeOfKnowledge;
